package cn.tedu.autoshow.website.service;


import cn.tedu.autoshow.commons.pojo.vo.PageData;
import cn.tedu.autoshow.commons.security.LoginPrincipal;
import cn.tedu.autoshow.website.pojo.param.AutoShowAddNewParam;
import cn.tedu.autoshow.website.pojo.param.AutoShowUpdateInfoParam;
import cn.tedu.autoshow.website.pojo.vo.AutoShowListItemVO;
import cn.tedu.autoshow.website.pojo.vo.AutoShowStandardVO;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;


@Transactional
public  interface IAutoShowService {
    /*添加新的车站场次*/
    void addNew(AutoShowAddNewParam autoShowAddNewParam, LoginPrincipal loginPrincipal);

     /*根据场次ID删除车展*/
    void deleteById(Long id);

     /*根据id修改车展数据*/
    void updateById(Long id, AutoShowUpdateInfoParam autoShowUpdateInfoParam);

    void setEnable(Long id);

    void setDisable(Long id);

    /*根据id查询车展详情*/
    AutoShowStandardVO getStandardById(Long id);

    PageData<AutoShowListItemVO> list(Integer pageNum);

    PageData<AutoShowListItemVO> list(Integer pageNum, Integer pageSize);


}
